<?php
include "config/config.php";
include_once "lib/Surat_masuk.php";
include_once "lib/Sifat.php";

session_start();
if(!isset($_SESSION['nip']) && !isset($_SESSION['kewenangan']) && !$_SESSION['unit']){

	header("Location:index.php");
}

$config=new config();
$config->connect();


if(isset($_GET["id"])){

	$daftar_sm = new Daftar_surat_masuk();
	$sm = $daftar_sm->getById($_GET["id"]);
	
} 


?>
<html>
<head>
</head>
<body>
		
    <table border=1 align="center" cellspacing=0 cellpadding=1 width=100%>
		<tr>
			<td>
				<table align="center" cellspacing=0 cellpadding=1 width=100%>
					<tr>
						<td width=20% align="center"> 
							<img src="images/depkeu.png" />
						</td>
						<td width=80%> 
							<div align="center" style="font-weight:bold; font-size:12px">
							<br/>
							KEMENTERIAN KEUANGAN REPUBLIK INDONESIA <br/>
							DIREKTORAT JENDERAL PERBENDAHARAAN <br/>
							KANTOR WILAYAH PROVINSI GORONTALO
							</div>
							<div align="center" style="font-size:8px;">
							Jl. Raden Saleh No.3, Gorontalo <br/>
							Telp:0435-826694, Fax:0435-824142<br/>
							</div>
						</td>
				</table>
				
			</td>
		</tr>
		
		<tr>
			<td>
				<div align="center" style="font-size:10px;">
				LEMBAR DISPOSISI
				</div>
			</td>
		</tr>
		
		<tr>
			<td>
				<div align="center" style="font-size:8px;">
				PERHATIAN : Dilarang memisahkan sehelai surat pun yang tergabung dalam berkas ini.
				</div>
			</td>
		</tr>
		
		<tr>
			<td>
				
					<table align="left" cellspacing=0 cellpadding=1 width=100% style="font-size:8px">
						<tr>
							<td width=10%>No. Surat</td>
							<td width=1%>:</td>
							<td width=23%><?php echo $sm->getNomor(); ?></td>
							
							<td width=10%>Sifat</td>
							<td width=1%>:</td>
							<td width=22%>
							<?php
							$daftar_sifat = new Daftar_sifat_surat();
							$sifat = $daftar_sifat->getById($sm->getSifat());
							echo $sifat->getSifat();
							?>
							</td>
							
							<td width=14%>No. Agenda</td>
							<td width=1%>:</td>
							<td width=17%><?php echo $sm->getNo_agenda(); ?></td>
						</tr>
						
						<tr>
							<td width=10%>Tgl. Surat</td>
							<td width=1%>:</td>
							<td width=23%><?php echo $sm->getTgl(); ?></td>
							
							<td width=10%>lampiran</td>
							<td width=1%>:</td>
							<td width=22%><?php echo $sm->getLampiran(); ?></td>
							
							<td width=12%>Waktu Terima</td>
							<td width=1%>:</td>
							<td width=19%><?php echo $sm->getWaktu_terima(); ?></td>
						</tr>
						
						<tr>
							<td width=10%>Hal</td>
							<td width=1%>:</td>
							<td width=23%><?php echo $sm->getHal(); ?></td>
							
							<td width=10%>Asal</td>
							<td width=1%>:</td>
							<td width=22%><?php echo $sm->getAsal(); ?></td>
							
							<td width=12%>Penerima</td>
							<td width=1%>:</td>
							<td width=19%><?php echo $sm->getPenerima(); ?></td>
						</tr>
					</table>
				
			</td>
		</tr>
		
		<tr>
			<td>
				<table align="left" cellspacing=0 cellpadding=1 width=100% style="font-size:8px">
					<tr>
						<td>
							<u><strong>Disposisi Kakanwil kepada:</strong></u>
						</td>
					</tr>
					<tr>
						<td width=33%><input type="checkbox" />Kepala Bagian Umum</td>
						<td width=33%><input type="checkbox" />Kepala Bidang PP-I</td>
						<td width=33%><input type="checkbox" />Kepala Bidang AKLAP</td>
						
					</tr>
					<tr>
						<td width=33%><input type="checkbox" />Kepala Bidang PA</td>
						<td width=33%><input type="checkbox" />Kepala Bidang PP-II</td>
						<td width=33%></td>
						
					</tr>
					
				</table>
				<br/>
				<table cellspacing=0 cellpadding=1 width=100% style="font-size:8px">
					
					<tr>
						<td>
							<u><strong>Petunjuk:</strong></u>
						</td>
					</tr>
					<tr>
						<td width=20%><input type="checkbox" />Setuju</td>
						<td width=20%><input type="checkbox" />Selesaikan</td>
						<td width=20%><input type="checkbox" />Jawab</td>
						<td width=40%><input type="checkbox" />Ingatkan</td>
					</tr>
					<tr>
						<td width=25%><input type="checkbox" />Tolak</td>
						<td width=25%><input type="checkbox" />Sesuai catatan</td>
						<td width=25%><input type="checkbox" />Perbaiki</td>
						<td width=25%><input type="checkbox" />Simpan</td>
					</tr>
					<tr>
						<td width=25%><input type="checkbox" />Teliti dan pendapat</td>
						<td width=25%><input type="checkbox" />Untuk perhatian</td>
						<td width=25%><input type="checkbox" />Bicarakan dengan saya</td>
						<td width=24%><input type="checkbox" />harap dihadiri/diwakili</td>
					</tr>
					<tr>
						<td width=25%><input type="checkbox" />Untuk diketahui</td>
						<td width=25%><input type="checkbox" />edarkan</td>
						<td width=25%><input type="checkbox" />Bicarakan bersama</td>
						<td width=25%><input type="checkbox" />Lain-lain</td>
					</tr>
				</table>
				
				<table cellspacing=0 cellpadding=1 width=100% style="font-size:8px">
					<tr>
						<td>
							<u><strong>Catatan Kakanwil:</strong></u>
						</td>
					</tr>
					<tr height="100px">
					</tr>
				
				</table>
			</td>
		</tr>
		
		<tr>
			<td>
					<table align="left" cellspacing=0 cellpadding=1 width=100% style="font-size:8px">
					<tr>
						<td>
							<u><strong>Disposisi Kabu/Kabid kepada:</strong></u>
						</td>
					</tr>
					<tr>
						<td width=50%><input type="checkbox" />Kasubag Kepeg/Keu/TURT/Duktek</td>
						<td width=50%><input type="checkbox" />Kasi PP-IA/PP-IB/PP-IC</td>
						
						
					</tr>
					<tr>
						<td width=50%><input type="checkbox" />Kepala Bidang PA-A/PA-B/PA-C/PA-D</td>
						<td width=50%><input type="checkbox" />Kepala Bidang PP-IIA/PP-IIB/PP-IIC</td>
						
						
					</tr>
					
					<tr>
						<td width=50%><input type="checkbox" />Kasi Bimtek/PDA/PK</td>
						<td width=50%></td>
						
					</tr>
				</table>
				
				<table cellspacing=0 cellpadding=1 width=100% style="font-size:8px">
					<tr>
						<td>
							<u><strong>Petunjuk:</strong></u>
						</td>
					</tr>
					<tr height="100px">
					</tr>
				
				</table>
			</td>
		</tr>
					
	</table>
	
	
<body>
<html>
<script type="text/javascript">
	window.onload=function cetak(){
		window.print();
		window.onfocus = function() { window.close(); }
	}
</script>





